package dest;

/**
 * @author feng
 * @Date 2022/2/26 21:44
 * 自动类型提升
 * 小类型可以自动向大类型进行转换
 * byte、short、char-->int-->long-->float-->double
 *
 */
public class demo2 {
    public static void main(String[] args) {
        //自动类型转换
        byte b = 11;
        short b2 = 111;
        int c = b + b2;
        long l = 111l;
        float f = 1212;
        float m = l + f;

        char c1 = 212;
        short s = 33;
        int m1 = c1 + s;
    }
}
